﻿using System;
using System.Linq;
using Wicresoft.EKA.MVCExtensions;
using Wicresoft.EKA.ITSM.Business;

namespace Wicresoft.EKA.ITSM.BusinessImpl
{
    public class CTMPeople : Base, ICTMPeople
    {
        protected override void Dispose(bool disposing)
        {
        }

        public CTMPeopleModel GetPeopleByLoginID(String ID)
        {
            var proxy = this.GetARProxy<CTMPeopleModel>();
            var list =  proxy.GetListEntry("'Remedy Login ID'=\"" + ID + "\"", new System.Collections.Generic.List<uint>()
                {
                    CTMPeopleModel.FullName_ID,
                }).FirstOrDefault();
            return list;
        }
    }
}
